/*
 * Copyright 2011-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.mgmt.system.role.entity;

import org.apache.ibatis.type.Alias;

import me.ijleex.mgmt.framework.entity.EntitySupport;

/**
 * 角色&菜单关系 表 t_mgmt_role_menu
 *
 * <p>规定某个角色能做哪些操作</p>
 *
 * @author liym
 * @since 2019-03-14 12:28:23 By 'codegen'
 */
@Alias("RoleMenu")
public class RoleMenu extends EntitySupport {

    /** ID */
    private Integer id;
    /** 角色ID */
    private Long roleId;
    /** 菜单ID */
    private Long menuId;

    /** 备注 */
    private String remarks;

    /**
     * 授权给指定角色的菜单ID列表，逗号分隔
     *
     * @since 2019-03-19 14:37
     */
    private String menuIds;

    public RoleMenu() {
        super();
    }

    public RoleMenu(Long roleId, Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(String menuIds) {
        this.menuIds = menuIds;
    }

}
